class_name SkillPool
extends Resource

@export var available_skills: Array[PandoraEntity]

var skill_pool: Array[PandoraEntity]

func generate_skill_pool() -> void:
	skill_pool = []
	for unit: PandoraEntity in available_skills:
		skill_pool.append(unit.instantiate())

## 随机挑选一个返回
func get_random_unit() -> PandoraEntity:
	if skill_pool.size() == 0:
		generate_skill_pool()

	return skill_pool.pick_random()
